package com.xiaozhengkeji.sc.service.imp;



import com.xiaozhengkeji.sc.bean.ResponseBean;
import com.xiaozhengkeji.sc.pojo.UserPoJo;
import com.xiaozhengkeji.sc.service.UserServiceFeign;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;


@Component
@Service
public class UserServiceFallback implements UserServiceFeign {
    private ResponseBean responseBean = new ResponseBean().setCode(404).setMsg("服务无法访问").setData("指定服务集群下线!");


    @Override
    public UserPoJo info(String token) {
        return null;
    }

    @Override
    public ResponseBean login(String username, String password) {
        return responseBean;
    }

    @Override
    public ResponseBean register(String username, String password) {
        return responseBean;
    }

    @Override
    public void out(String token) {

    }
}
